package com.hspedu.homework;

/**
 * @author sp
 * @version 0.1
 */
public class HomeWork05 {
    public static void main(String[] args) {
        A a = new A();
        a.fA();
    }
}

class A{
    private String name = "A_name";
    public void fA(){
        class B{
            private final String name = "B_name";
            void show(){
                System.out.println(name);
                System.out.println(A.this.name);
            }
        }
        B b = new B();
        b.show();
    }
}